class TFSWMutConfig extends GUIPage;

var array<class<Weapon> >	WeaponClass;
var array<String>			WeaponDesc;

var moComboBox				IonCombo;
var moComboBox				RedeemerCombo;

function InitComponent(GUIController MyController, GUIComponent MyOwner)
{
	Super.InitComponent(MyController, MyOwner);

    RedeemerCombo = moComboBox(Controls[4]);
    RedeemerCombo.AddItem("NukeMortar",none,"TaskForces.TFNKGun");
 	RedeemerCombo.AddItem("SiegeCannon",none,"TaskForces.TFCNGun");
 	RedeemerCombo.AddItem("WarpBlade",none,"TaskForces.TFWBGun");
    RedeemerCombo.SetIndex(class'Taskforces.TFSuperweaponsMut'.default.LastRedeemer);

	IonCombo = moComboBox(Controls[5]);
    IonCombo.AddItem("NukeMortar",none,"TaskForces.TFNKGun");
 	IonCombo.AddItem("SiegeCannon",none,"TaskForces.TFCNGun");
 	IonCombo.AddItem("WarpBlade",none,"TaskForces.TFWBGun");
 	IonCombo.SetIndex(class'Taskforces.TFSuperweaponsMut'.default.LastIon);
}

function bool InternalOnClick(GUIComponent Sender)
{
	class'Taskforces.TFSuperweaponsMut'.default.IonReplaceName = IonCombo.GetExtra();
	class'Taskforces.TFSuperweaponsMut'.default.RedeemerReplaceName = RedeemerCombo.GetExtra();
	class'Taskforces.TFSuperweaponsMut'.default.LastIon = IonCombo.GetIndex();
    class'Taskforces.TFSuperweaponsMut'.default.LastRedeemer = RedeemerCombo.GetIndex();
    class'Taskforces.TFSuperweaponsMut'.static.StaticSaveConfig();

	Controller.CloseMenu(false);

	return true;
}

defaultproperties
{
     Begin Object Class=GUIButton Name=DialogBackground
         StyleName="ComboListBox"
         WinHeight=1.000000
         bBoundToParent=True
         bScaleToParent=True
         bAcceptsInput=False
         bNeverFocus=True
         OnKeyEvent=DialogBackground.InternalOnKeyEvent
     End Object
     Controls(0)=GUIButton'taskforces.TFSWMutConfig.DialogBackground'

     Begin Object Class=GUIButton Name=OkButton
         Caption="OK"
         WinTop=0.600000
         WinLeft=0.400000
         WinWidth=0.200000
         OnClick=TFSWMutConfig.InternalOnClick
         OnKeyEvent=OkButton.InternalOnKeyEvent
     End Object
     Controls(1)=GUIButton'taskforces.TFSWMutConfig.OkButton'

     Begin Object Class=GUILabel Name=DialogText
         Caption="Enable Super Weapons"
         TextAlign=TXTA_Center
         TextColor=(B=0,G=180,R=220)
         TextFont="UT2HeaderFont"
         WinTop=0.325000
         WinHeight=32.000000
     End Object
     Controls(2)=GUILabel'taskforces.TFSWMutConfig.DialogText'

     Begin Object Class=GUILabel Name=DialogText2
         Caption="Choose the new superweapons."
         TextAlign=TXTA_Center
         TextColor=(B=0,G=180,R=220)
         WinTop=0.390626
         WinHeight=32.000000
     End Object
     Controls(3)=GUILabel'taskforces.TFSWMutConfig.DialogText2'

     Begin Object Class=moComboBox Name=RedeemerSelect
         bReadOnly=True
         ComponentJustification=TXTA_Left
         CaptionWidth=0.470000
         Caption="Replace Redeemer with"
         OnCreateComponent=RedeemerSelect.InternalOnCreateComponent
         WinTop=0.467448
         WinLeft=0.293750
         WinWidth=0.431641
         WinHeight=0.040000
     End Object
     Controls(4)=moComboBox'taskforces.TFSWMutConfig.RedeemerSelect'

     Begin Object Class=moComboBox Name=IonSelect
         bReadOnly=True
         ComponentJustification=TXTA_Left
         CaptionWidth=0.470000
         Caption="Replace IonPainter with"
         OnCreateComponent=IonSelect.InternalOnCreateComponent
         WinTop=0.523958
         WinLeft=0.293750
         WinWidth=0.431641
         WinHeight=0.040000
     End Object
     Controls(5)=moComboBox'taskforces.TFSWMutConfig.IonSelect'

     WinTop=0.300000
     WinHeight=0.400000
}
